import axios from 'axios';

export async function Axios(params) {
    return await axios({
        timeout: 10000,
        method: params.method,
        baseURL: 'http://www.lv666.top:8841/api',
        url: params.url,
        data: params.data,
        params: params.params
    }).catch(err => {
        alert('网络请求超时，请刷新。');
    })
}